import http from "@/api";

/**
 * @name //发卡中心管理
 */
// 获取人员列表
export const getEmployeeList = (params = {}) => {
  return http.post(`/employee/query`, params, { noLoading: true });
};

// 挂失
export const lockCard = (params: { id: string }) => {
  return http.post(`/employee/card/lock`, params, { noLoading: true });
};

// 解挂
export const unlockCard = (params: { id: string }) => {
  return http.post(`/employee/card/unlock`, params, { noLoading: true });
};

// 读取卡片
export const readCard = (params: { id: string }) => {
  return http.post(`employee/card/read`, params);
};

// 发卡
export const sendCard = (params = {}) => {
  return http.post(`employee/card/add`, params, { noLoading: true });
};

// 换卡
export const changeCard = (params = {}) => {
  return http.post(`employee/card/change`, params, { noLoading: true });
};

// 激活
export const activityCard = (params = {}) => {
  return http.post(`employee/card/active`, params, { noLoading: true });
};

// 重写
export const rewriteCard = (params = {}) => {
  return http.post(`employee/card/rewrite`, params, { noLoading: true });
};

// 保存指纹
export const saveFinger = (params = {}) => {
  return http.post(`employee/finger/save`, params, { noLoading: true });
};

// 比对指纹
export const compareFinger = (params = {}) => {
  return http.post(`employee/finger/compare`, params, { noLoading: true });
};
